projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af49dd3
)
GtkStackSwitcher: unset tooltip
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 25 Apr 2013 00:10:05 +0000
(20:10 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 25 Apr 2013 00:10:05 +0000
(20:10 -0400)
It was pointed out to me that we leave the tooltip behind
when setting and unsetting an icon.
gtk/gtkstackswitcher.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstackswitcher.c
b/gtk/gtkstackswitcher.c
index cc603f14ff6b3ddc84e1a84895398b043c23cc46..833dfde7e1d1b552039e4255175e8b4ab6f6ffe4 100644
(file)
--- a/
gtk/gtkstackswitcher.c
+++ b/
gtk/gtkstackswitcher.c
@@
-122,6
+122,8
@@
rebuild_child (GtkWidget *self,
{
button_child = gtk_label_new (title);
+ gtk_widget_set_tooltip_text (GTK_WIDGET (self), NULL);
+
gtk_style_context_remove_class (context, "image-button");
gtk_style_context_add_class (context, "text-button");
}